﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApp
{
    public partial class FrmLogin : Form
    {
        public FrmLogin()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ServiceReference.WebServiceSoapClient client = new ServiceReference.WebServiceSoapClient();
            try
            {
                var list = client.GetDiningRoom();

                //var state = client.Login(this.txtUserName.Text, this.txtPwd.Text);

                //if (state)
                //{
                //    FrmMain f = new FrmMain();

                //    f.Show();
                //}
                //else
                //{
                //    MessageBox.Show("登录失败，可能是你的用户名或者密码错误！");
                //}
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
    }
}
